package edu.ucsd.cs110.mycity.controller;

import edu.ucsd.cs110.mycity.BuddyListActivity;
import edu.ucsd.cs110.mycity.MyCityMapActivity;
import android.app.Activity;
import android.content.Intent;

public class ViewController {
	private static Activity loginScreen;
	private static Activity mapScreen;

	public static void doLoginIntent() {
		Intent loginIntent = new Intent(loginScreen, MyCityMapActivity.class);
		loginScreen.startActivity(loginIntent);
	}
	
	public static void doChatIntent() {
		Intent chatIntent = new Intent(loginScreen, BuddyListActivity.class);
		loginScreen.startActivity(chatIntent);
	}
	
	public static void setLoginScreen(Activity loginScreen) {
		ViewController.loginScreen = loginScreen;
	}

	public static Activity getLoginScreen() {
		return loginScreen;
	}

	public static void setMapScreen(Activity mapScreen) {
		ViewController.mapScreen = mapScreen;
	}

	public static Activity getMapScreen() {
		return mapScreen;
	}
	
}
